﻿<%@ Page Language="C#" MasterPageFile="~/Enterprise/Master/AdminMaster.Master" AutoEventWireup="true"
    CodeBehind="RefundDetailInvoice.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.InvoiceManage.RefundDetailInvoice"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <%--    <div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0);">结算详情</a></li>
        </ul>
    </div>--%>
    <div class="maincon">
        <div class="note">
            发票明细
        </div>
        <div class="note2">
        </div>
        <table>
            <tr>
                <th style="width: 100px;">
                    <asp:Label ID="lblInvoiceId" runat="server" Text="发票号："></asp:Label>
                </th>
                <td align="center">
                    <asp:Label runat="server" ID="txtInvoiceId"></asp:Label>
                </td>
                <th style="width: 100px;">
                    <asp:Label ID="lblAmount" runat="server" Text="发票总金额："></asp:Label>
                </th>
                <td>
                    <asp:Label ID="txtAmount" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th style="width: 100px;">
                    <asp:Label ID="lblHospital" runat="server" Text="采购医疗机构："></asp:Label>
                </th>
                <td>
                    <asp:Label ID="txtHospital" runat="server"></asp:Label>
                </td>
                <th style="width: 100px;">
                    <asp:Label ID="lblStatus" runat="server" Text="发票状态："></asp:Label>
                </th>
                <td>
                    <asp:Label ID="txtStatus" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <br />
    <div id="tabcontent2">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">产品名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">规格型号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutLookc" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">材质：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMaterial" runat="server"></asp:TextBox>
                            </td>
                            <td rowspan="2">
                                <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="btn" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right">采购单：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOrderName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <%--采购医疗机构：--%>生产企业：
                            </td>
                            <td align="left">
                                <%-- <asp:TextBox ID="txtHospitalName" runat="server"></asp:TextBox>--%><asp:TextBox
                                    ID="txtCompanyName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">配送时间：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtTimeFrom" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd '})"
                                    MaxLength="10" Width="62px"></asp:TextBox>-<asp:TextBox ID="txtTimeTo" runat="server"
                                        onFocus="WdatePicker({dateFmt:'yyyy-MM-dd '})" MaxLength="10" Width="62px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">拼音码：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtpinyincode" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label Text="项目：" ID="lblProjectid" runat="server" />
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlProjectid" runat="server">
                                    <asp:ListItem Value="0002">2014年内蒙古自治区网上高值医用耗材阳光采购项目</asp:ListItem>
                                    <asp:ListItem Value="0001">2012年内蒙古自治区网上医用耗材采购项目</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwRefundDetail" class="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1)%>
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="OrderName" HeaderText="采购单名称" ReadOnly="true" />
            <%--<asp:BoundField DataField="TotalAmount" HeaderText="采购总金额" ReadOnly="true" />--%>
            <%--<asp:BoundField DataField="Amount" HeaderText="采购金额" ReadOnly="true" DataFormatString="{0:F2}" />--%>
            <asp:TemplateField HeaderText="采购金额">
                <ItemTemplate>
                    <asp:Label ID="lblAmount" runat="server" Text='<%#HZ.DrugTrade.Web.Function.FormPrice(Eval("ProjectID"), Eval("Amount")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <%--update by lhl 应该显示每条明细的采购金额--%>
            <asp:BoundField DataField="HospitalName" HeaderText="采购医疗机构" ReadOnly="true" />
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" ReadOnly="true" />
            <asp:BoundField DataField="GoodsName" HeaderText="产品名称" ReadOnly="true" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" ReadOnly="true" />
            <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="无" />
            <asp:BoundField DataField="Unit" HeaderText="最小计量单位" />
            <%--<asp:BoundField DataField="QualityLevel" HeaderText="产品类别" />--%>
            <%--<asp:BoundField DataField="Price" HeaderText="采购价格" ReadOnly="true" DataFormatString="{0:N4}" />--%>
            <asp:TemplateField HeaderText="采购价格">
                <ItemTemplate>
                    <asp:Label ID="lblPrice" runat="server" Text='<%#HZ.DrugTrade.Web.Function.FormPrice(Eval("ProjectID"), Eval("Price")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="PurchaseCount" HeaderText="采购数量" ReadOnly="true" />
            <asp:BoundField DataField="DistributeCount" HeaderText="配送量" ReadOnly="true" />
            <asp:BoundField DataField="WarehouseCount" HeaderText="入库量" ReadOnly="true" />
            <asp:BoundField DataField="BatchRecordID" HeaderText="批号" ReadOnly="true" />
            <asp:BoundField DataField="DistributeTime" HeaderText="配送时间" ReadOnly="true" DataFormatString="{0:yyyy-MM-dd}" />
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>提示:</li>
        </ul>
    </div>
    <div class="listctrl">
        <input id="btnBack" runat="server" type="button" value="返回" onclick="javascript: history.go(-1)"
            class="btn" />
    </div>
</asp:Content>
